//
//  WJY_FilmeSongTableViewCell.m
//  MooMusic
//
//  Created by wjy on 15/10/22.
//  Copyright © 2015年 wjy. All rights reserved.
//

#import "WJY_FilmeSongTableViewCell.h"

@implementation WJY_FilmeSongTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.img = [[UIImageView alloc] init];
//        self.img.backgroundColor = [UIColor yellowColor];
        self.oneName = [[UILabel alloc] init];
//        self.oneName.backgroundColor = [UIColor orangeColor];
        self.twoName = [[UILabel alloc] init];
//        self.twoName.backgroundColor = [UIColor cyanColor];
        self.threeName = [[UILabel alloc] init];
//        self.threeName.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.img];
        [self.contentView addSubview:self.oneName];
        [self.contentView addSubview:self.twoName];
        [self.contentView addSubview:self.threeName];
    }
    return self;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = CGRectMake(5, 5, SCREENWIDTH / 4, 100);
    self.oneName.frame = CGRectMake(110, self.img.frame.origin.y + 2,  SCREENWIDTH - 120, 30);
    self.twoName.frame = CGRectMake(110, self.oneName.frame.origin.y + 30 + 2, SCREENWIDTH - 120, 30);
    self.threeName.frame = CGRectMake(110, self.twoName.frame.origin.y + 30 + 2, SCREENWIDTH - 120, 30);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
